<!DOCTYPE html>
<html>
<head>
<title>${context.getContextName()}</title>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
${Styles.src(zhiqim.css)}
${Scripts.src(zhiqim.js)}
${Scripts.setContextPath(context)}
${Scripts.src(zhiqim_iframenav.js)}
${Styles.src(zmr_theme.css)}
${Scripts.src(zmr_theme.js)}
${Styles.htmlOverflowHidden()}
${zhiqim_manager_console_log()}
<script>
//初始化
Z.onload(Zmr.containerFrame);
Z.onload(function(){Zmr.iframenavF5(${sessionUser.isWelcomeUrl()}, '${sessionUser.getIncludeUrl()}')});
//窗口变动
Z(window).resize(Zmr.containerFrame);
Z(window).resize(Zin.setTranslateForShowActive);
</script>
</head>

<body>
<!--顶部导航 -->
<div id="topnav" class="topnav">
    <div id="logo" class="logo z-pointer z-text-left ${zhiqim_manager_logo_px()} ${sessionUser.getSidebarClass()}" onclick="Zin.selectIframeTab('menu_index');">${context.getAttribute("name")}</div>
    <div class="topnavleft">
        <div class="bar z-w60 z-text-center z-pointer" onclick="Zmr.sidebar();"><i class="z-font z-list z-px22"></i></div>
        ${zhiqim_manager_topnav_left_defined()}
    </div>
    <div class="topnavright">
        ${zhiqim_manager_topnav_right_defined()}
        <div class="nav z-w100 z-text-center z-pointer z-user-select-none" onclick="Z.L.reload(mainFrame);">刷新</div>
        <div class="nav z-w100 z-text-center z-pointer z-user-select-none" onclick="Z.L.confirm('${context.getRootPath("/"+zhiqim_manager+"/logout.htm")}', '确实要退出吗?');">退出系统</div>
    </div>
    <div id="topnaviframe" class="z-hidden-fixed"></div>
</div>

<!--容器开始 -->
<div id="container" class="container">

<!--边导航开始-->
<div id="sidebar" class="${sessionUser.getSidebarClass()}">
<!--顶导航-->
<#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request)/>
<#var secondMenuCode = sessionUser.getSelectedSecondMenuCode(request)/>
<ul class="sidebar-top">
    <li id="menu-avatar" class="avatar<#if context.getRootPath("/"+zhiqim_manager+"/profile.htm") == sessionUser.getIncludeUrl()> onloadmenu</#if>" data-text="个人中心" onclick="Zin.doClickChildMenu(this, '${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}');"><img class="z-bd-rd50p z-w40 z-h40" src="${sessionUser.getAvatar50()}"></li>
<#for topMenu : sessionUser.getTopMenuList()>
<#var childMenuFirst = sessionUser.getChildMenuFirst(topMenu.getMenuCode())/>
<#if childMenuFirst != null>
    <li onclick="Zmr.doClickTopMenu(this, '${topMenu.getMenuCode()}');" <#if topMenu.getMenuCode() == topMenuCode>class="active"</#if>><i class="z-font ${topMenu.getMenuIcon()}"></i><br>#{topMenu.getMenuNameAbbr()}</li>
<#elseif Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
    <li onclick="Zin.doClickChildMenu(this, '${context.getRootPath(topMenu.getMenuUrl())}');" <#if topMenu.getMenuCode() == topMenuCode>class="active"</#if>><i class="z-font ${topMenu.getMenuIcon()}"></i><br>#{topMenu.getMenuNameAbbr()}</li>
</#if>
</#for>
</ul>
<!--子导航-->
<div id="sidebar-child">
<#for topMenu : sessionUser.getTopMenuList()>
    <!--${topMenu.getMenuName()} - 子栏目列表-->
    <div class="sidebar-child" id="sidebar-child-${topMenu.getMenuCode()}" style="display: <#if topMenu.getMenuCode() == topMenuCode>block<#else>none</#if>;">
        <div class="info z-float-left z-text-left z-bd-b" >
            <span class="z-relative z-px18 z-bold" style="line-height:32px;"><i class="z-font ${topMenu.getMenuIcon()}"></i><span class="z-mg-l10">#{topMenu.getMenuName()}</span></span><br>
        </div>
        <ul>
        <#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
            <li onclick="Zin.doClickChildMenu(this, '${context.getRootPath(childMenu.getMenuUrl())}');" <#if childMenu.getMenuCode() == secondMenuCode>class="active onloadmenu"</#if>><i class="z-font z-px16 ${childMenu.getMenuIcon()}"></i><span class="z-mg-l5">#{childMenu.getMenuName()}</span></p>
        </#for>
        </ul>
    </div>
</#for>
</div>
<!--边导航结束-->
</div>

<!-- 框架导航 -->
<div id="iframenav" class="iframenav z-h40 z-lh40 z-bg-white z-bd-b" style="margin-left:<#if sessionUser.hasSidebar()>260px<#else>0</#if>">
    <div class="iframenav-prev" onclick="Zin.turnIframeTab(false);"><i class="z-font z-arrow-left"></i><i class="z-font z-arrow-left"></i></div>
    <div class="iframenav-tab-wrap">
    <ul class="iframenav-tab-list">
        <li class="iframenav-tab-item active" id="tab_menu_index" onclick="Zin.selectIframeTabEvent(event);"><span>首页</span></li>
    </ul>
    </div>
    <div class="iframenav-next" onclick="Zin.turnIframeTab(true);"><i class="z-font z-arrow-right"></i><i class="z-font z-arrow-right"></i></div>
    <div class="iframenav-ctrl">
        <div class="iframenav-ctrl-title" onclick="Zin.toggleIframeCtrlWrap();">关闭操作<i class="z-font z-arrow-down"></i></div>
        <div class="iframenav-ctrl-wrap">
        <ul>
            <li class="iframenav-ctrl-item" onclick="Zin.selectIframeTabActive();">定位当前选项卡</li>
        </ul>
        <ul>
            <li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabAll();">关闭全部选项卡</li>
            <li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabOther();">关闭其他选项卡</li>
        </ul>
        </div>
    </div>
</div>

<!--框架内容-->
<div id="mainbody" class="mainbody iframenav-cont z-h100p" style="margin-left:<#if sessionUser.hasSidebar()>260px<#else>0</#if>">
    <div id="iframe_menu_index" class="iframenav-cont-item active">
        <iframe id="mainFrame" name="mainFrame" frameborder="0" scrolling="auto" src="welcome.htm"></iframe>
    </div>
</div>

<!--容器结束 -->
</div>
</body>
</html>